package com.xb.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xb.model.domain.UsersInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * (Users)表数据库访问层
 *
 * @author makejava
 * @since 2024-07-15 13:18:59
 */
@Mapper
public interface UsersInfoMapper extends BaseMapper<UsersInfo> {
    @Select("SELECT COUNT(*) FROM users_info WHERE business_email = #{businessEmail} AND first_name = #{firstName}")
    int checkUserMatch(String businessEmail, String firstName);

    void createUserInfoIndexes();

    void dropUserInfoIndexes();

    long totalRows(int index);
    List<UsersInfo> selectList(Map<String, Object> params);
}

